package org.xteam.sled.tree;

import java.util.List;

import org.xteam.sled.model.AbsoluteField;
import org.xteam.sled.tree.TreeBuilder.SplitResult;

public class ChildArmHeuristic extends Heuristic {

	public ChildArmHeuristic() {
		super("childarm");
	}

	@Override
	public int run(TreeBuilder treeBuilder, List<SplitResult> children,
			AbsoluteField f) {
		int count = 0;
		for (SplitResult res : children) {
			count -= res.arms.size();
		}
		return count;
	}

}
